package com.livegoods.controller;

import com.livegoods.service.DetailService;
import net.bytebuddy.asm.Advice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class BuytimeController {

    @Autowired
    private DetailService detailService;

    @GetMapping("/detail/buytime")
    public Map<String,Object> buytime(String id){
        return  detailService.buytime(id);
    }

}
